<?php
$view = $this->gcTemplate->gcView;
$data = $this->gcTransport->data;
$data2 = $this->gcTransport->data2;
$lang = $this->gcTransport->lang;
$xhtml = "";
$xhtml2 = "";
if(isset($data2) && count($data2) >0) foreach ($data2 as $item){
	$xhtml2.= '<li><a href="#" data-filter=".filter'.$item['cvpt_id'].'">'.$item['cvpt_name'.$lang].'</a></li>';
} 
if(isset($data) && count($data) >0) foreach ($data as $item){
	$xhtml.= '<li class="filter'.$item['cvp_typeid'].' print">
						<div class="portfolio-description">
							<div class="portfolio-text">
								<h4>'.$item['cvp_name'].'</h4>
								<p>'.$item['cvp_detail'.$lang].'.</p>
							</div>
							<a href="'.FILE_URL.'/project_img/'.$item['cvp_image'].'" class="fancybox zoom-item" title="'.$item['cvp_name'].'">'.$view->translate('View').'</a>
						</div>
						<img src="'.FILE_URL.'/project_img/'.$item['cvp_image'].'" alt="" />
					</li>';
} 


?>
<h2><span><?php echo $view->translate('Portfolio')?></span></h2>
				<p><?php echo $view->translate('msg2');?>.</p>
				<!-- Portfolio Filter -->
				<ul id="portfolio-filter">
				   <li><a href="#" class="current" data-filter="*">All</a></li>
				   
				  <?php if(isset($xhtml2)) echo $xhtml2;?>
				</ul>
				<!-- End Portfolio Filter -->
				<!--Portfolio Items -->
				<ul id="portfolio-list">
				 <?php if(isset($xhtml)) echo $xhtml;?>
				</ul>
				<!-- End Portfolio Items -->
				
				<!-- End Portfolio Items -->